from transformers import *
import gradio as gr
from transformers.pipelines import SUPPORTED_TASKS

# pipe = pipeline("text-classification", model="D:\models\multilingual-sentiment-analysis")
# gr.Interface.from_pipeline(pipe).launch()

for k, v in SUPPORTED_TASKS.items():
    print(k, v)

# sentence = "I love this movie!"
# result = pipe(sentence)
# print(result)